/**
* 获取session数据
*/
var getSessionParam = function(key) {
    var value = "";
    $.ajax({
        url: "/sys-report/api/user",
        type: 'get',
        async: false,
        success: function (result) {
            value = result[key];
        },
        error: function (result) {
        }
    });
    return value;
};

/**
* 获取系统参数数据
*/
var getSysParam = function(key) {
    var value = "";
    $.ajax({
        url: "/sys-report/api/sys-data/" + key,
        type: 'post',
        contentType: 'application/json',
        dataType: 'json',
        async: false,
        success: function (result) {
            value = result;
        },
        error: function (result) {
        }
    });
    return value;
};
